<?php
$arr = array(
0 => array("name"=>"张三","age"=>20,"height"=>"178cm"),
1 => array("name"=>"李四","age"=>21,"height"=>"180cm"),
2 => array("name"=>"王五","age"=>22,"height"=>"160cm")
);

// $str ="<ul>";
// foreach($arr as $v){
// 	$str .= "<li>姓名是{$v['name']};年龄是{$v['age']};身高是{$v['height']}</li>";
// }
// $str .="</ul>";
// echo $str;

// $arr =["张三","李四","王五"];
// for ($i=0;$i<count($arr);$i++){
// 	echo "下标是".$i."键值是".$arr[$i]."<br>";
// }

// $arr = array("name"=>"张三","age"=>20,"height"=>"178cm");
// foreach($arr as $k=>$v){
// 	echo "键名是".$k."键值是".$v."<br>";
// }



?>
<ul>
<?php foreach($arr as $v){ ?>
<li>姓名是<?php echo $v['name'];?> 年龄是<?php echo $v['age'] ?> 身高是 <?php echo $v ['height'];?></li>
	<?php
} ?>
</ul>